#include <QApplication>
#include <QQmlApplicationEngine>
#include <QtQml>
#include "audiodata.h"
#include "jsondatamanager.h"

//#include "libzplay.h"
using namespace libZPlay;

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

//    ZPlay *player = CreateZPlay();

    AudioData ad;
    JsonDataManager jm;
    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("AudioData",&ad);
    engine.rootContext()->setContextProperty("DataManager",&jm);
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

    return app.exec();
}
